import { defineStore } from "pinia"
import { loginStatusKey } from "./keys"

interface ILoginStatus {
    isLoginStatus: boolean
}

export const useLoginStatus = defineStore(loginStatusKey, {
    state(): ILoginStatus {
        return {
            isLoginStatus: false
        }
    },
    actions: {
        changeLoginStatus(payload: boolean) {
            this.isLoginStatus = payload
        }
    }
})